import random
def generate_verify_code():
    # 生成验证码
    s = 'ABCDEFGHIJKLMNOPQRSTUVWXYXabcdefghijklmnopqrstuvwxyz0123456789'
    code = ''
    for i in range(4):
        r = random.choice(s)
        code += r
    print(code)

# 函数名也是一个变量，存储函数内存地址
print(generate_verify_code)

# 函数名+()为调用执行函数
generate_verify_code()

